package com.bothin.experiment4.enums;

import lombok.Data;
import lombok.Getter;

/**
 * Created by bothin
 * At 2019/12/18 0:29
 * Description:
 */
@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    PARAM_ERROR(1, "参数不正确"),
    SEND_GOODS_ERROR(2, "仓库管理员发货失败"),
    SEND_GOODS_ERROR_ISNULL(3, "仓库管理员发货失败,找不到发货单"),
    PRODUCT_NOT_EXIST(4, "商品不存在"),
    ERROR(5,"操作异常，请重新试试！！"),
    PRODUCT_STOCK_ERROR(11, "商品库存量不够，请前往进货！！"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
